import axios from '@/libs/request'
// 行业复工复产
export const insert = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indResuWorkService/insert',
    data: data,
    type: 'post'
  })
}
export const update = (data) => {
  return axios.request({
    url: '/api/as/cme2/industryresuwork/update',
    data: data,
    type: 'post'
  })
}
export const deletes = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indResuWorkService/delete',
    data: data,
    type: 'post'
  })
}
export const findPageList = (pageInfo) => {
  return axios.request({
    url: '/api/as/cme2/industryresuwork/findPageList',
    data: pageInfo,
    type: 'get'
  })
}
export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indResuWorkService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indResuWorkService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const findList = (data) => {
  return axios.request({
    url: '/api/as/cme2/industryresuwork/findList',
    data: data,
    type: 'get'
  })
}
export const getDictInfoList = () => {
  return axios.request({
    url: 'api/as/sc/dict/getDictInfoList?type=industry_type',
    data: {},
    type: 'get'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indResuWorkService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/indResuWorkService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
